package com.briup;

import com.alibaba.excel.converters.Converter;
import com.alibaba.excel.converters.ReadConverterContext;
import com.alibaba.excel.converters.WriteConverterContext;
import com.alibaba.excel.metadata.data.WriteCellData;

/**
 * 转化器 转化读写的操作
 */
public class NameConverter implements Converter<String> {
    @Override
    public String convertToJavaData(ReadConverterContext<?> context) throws Exception {
        //将读的名字转化为大写
        return context.getReadCellData().getStringValue().toUpperCase();
    }
    //重写

    @Override
    public WriteCellData<?> convertToExcelData(WriteConverterContext<String> context) throws Exception {
        return new WriteCellData<>(context.)
    }
}
